import React, { Component } from "react";
import store from "../../store/store";
import { observer } from "mobx-react";
class Counter extends Component {
  
  render() {
    return (
      <div>
        <h1> Counter Example</h1>
        <hr />
        <h3>{store.count}</h3>
        <h3>{store.double}</h3>
        <button onClick={() => store.increment()}>+</button>
        <button onClick={() => store.decrement()}>-</button>
      </div>
    );
  }
}
export default observer(Counter);
